import { UserOutlined, LockOutlined } from "@ant-design/icons-vue"

const componentConfig = {
    login: {
        component: 'AInput',
        label: '账号',
        attrs: {
            allowClear: true,
            placeholder: '账号',
        },
        slots: [
            { name: 'prefix', component: UserOutlined },
        ],
        rules: [
            { required: true, message: '请输入账号', trigger: 'blur' }
        ]
    },
    password: {
        component: 'AInputPassword',
        label: '密码',
        attrs: {
            allowClear: true,
            placeholder: '密码',
        },
        slots: [
            { name: 'prefix', component: LockOutlined },
        ],
        rules: [
            { required: true, message: '请输入密码', trigger: 'blur' }
        ]
    },
    // verCode: {
    //     component: 'AInput',
    //     label: '验证码',
    //     componentSlot: true,
    //     attrs: {
    //         style: {
    //             width: '70%',
    //         },
    //         allowClear: true,
    //         placeholder: '验证码',
    //     },
    //     slots: [
    //         { name: 'prefix', component: LockOutlined },
    //     ],
    //     rules: [
    //         { required: true, message: '请输入验证码', trigger: 'blur' }
    //     ]
    // },
}

export default componentConfig